import request from '@/utils/request'
const uri = '/workReceipt'

export function page (query) {
    return request({
        url: `${uri}`,
        method: 'get',
        params: query
    })
}

export function add (data) {
    return request({
        url: `${uri}`,
        method: 'post',
        data: data
    })
}

export function update (data) {
    return request({
        url: `${uri}`,
        method: 'put',
        data: data
    })
}

export function fakeDelete (query) {
    return request({
        url: `${uri}/fakeDelete`,
        method: 'delete',
        params: query
    })
}

export function getById (id) {
    return request({
        url: `${uri}/${id}`,
        method: 'get'
    })
}
